<template>
  <div class="Login">
    <h2>欢迎登录</h2>
    <!-- 表单 -->
    <el-form
      class="reForm"
      label-position="top"
      label-width="80px"
      :model="User"
      :rules="rules"
      hide-required-asterisk
    >
      <el-form-item label="" prop="uname">
        <label for="tel" class="lab"> 用户名：</label>
        <el-input
          v-model="User.uname"
          class="inp"
          placeholder="请输入用户名"
        ></el-input>
      </el-form-item>
      <el-form-item prop="pass">
        <label for="tel" class="lab">密码：</label>
        <el-input
          class="inp"
          type="password"
          v-model="User.pass"
          placeholder="请输入密码"
        ></el-input>
      </el-form-item>
      <!-- 登录 -->
      <div class="go">
        <el-button type="success" round class="goLogin">登录</el-button>
      </div>
    </el-form>
  </div>
</template>

<script>
  export default {
    name: 'Login',
    data() {
      return {
        User: {
          uname: '',
          pass: '',
        },
        rules: {
          uname: [{ required: true, message: '请输入用户名', trigger: 'blur' }],
          pass: [{ required: true, message: '请输入密码', trigger: 'blur' }],
        },
      };
    },
  };
</script>

<style lang="less" scoped>
  // @import url('../state/LoginRegister/Login.less');
</style>
